package com.ruoyi.manager.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * strategy对象 t_strategy
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class Strategy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 策略ID */
    private Long id;

    /** 策略名称 */
    @Excel(name = "策略名称")
    private String name;

    /** 折扣率(0-100) */
    @Excel(name = "折扣率(0-100)")
    private Long discount;

    /** 可提前预约天数 */
    @Excel(name = "可提前预约天数")
    private Long advanceDays;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setDiscount(Long discount) 
    {
        this.discount = discount;
    }

    public Long getDiscount() 
    {
        return discount;
    }

    public void setAdvanceDays(Long advanceDays) 
    {
        this.advanceDays = advanceDays;
    }

    public Long getAdvanceDays() 
    {
        return advanceDays;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("discount", getDiscount())
            .append("advanceDays", getAdvanceDays())
            .toString();
    }
}
